﻿using ByteSite.WinClient.Common;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ByteSite.WinClient.Entitys
{
    public class FilesInfo
    {
        public long Length { get; set; }

        public string Name { get; set; }

        public string type { get; set; }

        public string FullName { get; set; }

        public bool IsReadOnly { get; set; }
        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime CreationTime { get; set; }

        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime CreationTimeUtc { get; set; }

        public string Extension { get; set; }
        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime LastAccessTime { get; set; }

        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime LastAccessTimeUtc { get; set; }

        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime LastWriteTime { get; set; }

        [JsonConverter(typeof(TcDateTimeConverter))]
        public DateTime LastWriteTimeUtc { get; set; }
    }
}
